﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace SchoolManagementSystem.Report._1._HocVien
{
    public partial class DanhSachHocVienTuyChon : DevExpress.XtraReports.UI.XtraReport
    {
        public DanhSachHocVienTuyChon()
        {
            InitializeComponent();
              
        }

        int STT = 0;
        public string CourseName;
        public DateTime from;
        public DateTime to;
        private void Detail_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            STT++;
            xrTableCell_STT.Text = STT.ToString();
        }

        private void ReportHeader_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
         //   xrLabel_Khoa.Text = "Khóa: " + CourseName;
          //  xrLabel_ClassSize.Text = "Sỉ số: " + ClassSize;
          //  xrLabel_Teacher.Text = "GVCN: " + Teacher;
        }

        private void TopMargin_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
            xrLabel_date.Text = "Từ " + from.ToShortDateString() + " đến " + to.ToShortDateString();
        }

    }
}
